//
//  SRBookCatalogueListTableViewCell.m
//  StoryShow
//
//  Created by CyonLeuMBP on 2017/4/19.
//  Copyright © 2017年 qudiandu.cn. All rights reserved.
//

#import "SRBookCatalogueListTableViewCell.h"

NSString *kSRBookCatalogueListTableViewCell = @"SRBookCatalogueListTableViewCell";

@implementation SRBookCatalogueListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];
    self.contentView.backgroundColor = [UIColor clearColor];
    self.backgroundColor = [UIColor clearColor];
    
    self.titleLabel.textColor = self.pageLabel.textColor = css.color_4;
    self.titleLabel.font = self.pageLabel.font = css.fontOfH5;

    self.selectedBackgroundView = [[UIView alloc] init];
    self.selectedBackgroundView.backgroundColor = [UIColor clearColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];

    if (selected) {
        self.titleLabel.textColor = self.pageLabel.textColor = css.color_7;
    } else {
        self.titleLabel.textColor = self.pageLabel.textColor = css.color_4;
    }
}

- (void)setHighlighted:(BOOL)highlighted {
    [super setHighlighted:highlighted];
    
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];
    
    if (highlighted) {
        self.titleLabel.textColor = self.pageLabel.textColor = css.color_7;
    } else {
        self.titleLabel.textColor = self.pageLabel.textColor = css.color_4;
    }
}


@end
